﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MouseExtender.WebSite.UnitTests.LoggingService;
using System.Transactions;
using MouseExtender.WebSite.UnitTests.UpdateService;

namespace MouseExtender.WebSite.UnitTests
{
    [TestClass]
    public class UpdateServiceTest
    {
        [TestMethod]
        public void IsNewVersionAvailableTest()
        {
            ApplicationInfo appInfo = new ApplicationInfo()
            {
                ApplicationInstanceId = TestConstants.ApplicationInstanceId,
                ApplicationVersion = TestConstants.ApplicationVersion,
            };

            UpdateServiceClient updateProxy = new UpdateServiceClient();
            var available = updateProxy.IsNewVersionAvailable(appInfo);
        }
    }
}
